package com.kaifamiao.month03.day0313;

public class User {
    int no;
    String name;
    String number;
    static Double money;
    String password;
    long card;
    String[] cookies = new String[10];
    int cookiesCount = 0;
    /**
     * 显示用户信息
     */
    public void show(){
        System.out.println(number + " , 卡号为： " + card + " ,密码：******" );
    }

    /**
     * 显示用户的流水记录
     * @param n 现在共有多少条流水记录
     */
    public void showCookies(int n){
        System.out.println(name + " 流水记录如下：");
        if(n != 0){
            for(int i = 0;i < n; i ++){
                System.out.println(cookies[i]);
            }
        }else{
            System.out.println("暂无流水");
        }
    }
}
